<%@ page language="java" import="java.util.*,com.vo.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%StudentVo sv = (StudentVo)request.getAttribute("sv"); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>Student</title>
    <link href="assets/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/lib/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="assets/css/custom.css" rel="stylesheet">

</head>

<body>
<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="#">学生信息管理</a>
        </div>
    </div>
</div>
<div class="container">
    <div class="row clearfix">
        <!-- Building Form. -->
        <div class="span6">
            <div class="clearfix">
                <form action="UpdateStudentServlet" method="post" class="form-horizontal" >
                    <fieldset>

                        <!-- Form Name -->
                        <legend>修改学生信息</legend>

                        <!-- Text input-->
                        <div class="control-group">
                            <input type="hidden" value="<%=sv.getStudentNum() %>" name="id">
                            <label class="control-label" for="stuNo">学号</label>
                            <div class="controls">
                                <input id="stuNo" name="stuNo" type="text" placeholder="<%=sv.getStudentNum() %>" class="input-xlarge" required="">

                            </div>
                        </div>

                        <!-- Text input-->
                        <div class="control-group">
                            <label class="control-label" for="studentName">姓名</label>
                            <div class="controls">
                                <input id="studentName" name="studentName" type="text" placeholder="<%=sv.getStudentName() %>" class="input-xlarge" required="">

                            </div>
                        </div>

                        <!-- Select Basic -->
                        <div class="control-group">
                            <label class="control-label" for="sex">性别</label>
                            <div class="controls">
                                <select id="sex" name="sex" class="input-xlarge">
                                    <option>男</option>
                                    <option>女</option>
                                </select>
                            </div>
                        </div>

                        <!-- Text input-->
                        <div class="control-group">
                            <label class="control-label" for="class">班级</label>
                            <div class="controls">
                                <input id="class" name="class" type="text" placeholder="<%=sv.getStudentClass() %>" class="input-xlarge" required="">

                            </div>
                        </div>

                        <!-- Password input-->
                        <div class="control-group">
                            <label class="control-label" for="password">密码</label>
                            <div class="controls">
                                <input id="password" name="password" type="password" placeholder="<%=sv.getPassword() %>" class="input-xlarge" required="">

                            </div>
                        </div>

                        <!-- Text input-->
                        <div class="control-group">
                            <label class="control-label" for="idcard">ID</label>
                            <div class="controls">
                                <input id="idcard" name="idcard" type="text" placeholder="<%=sv.getIdCard() %>" class="input-xlarge" required="">

                            </div>
                        </div>

                        <!-- Button -->
                        <div class="control-group">
                            <label class="control-label" for="submit"></label>
                            <div class="controls">
                                <input type="submit" id="submit" name="submit" class="input input-xlarge"></input>
                            </div>
                        </div>

                    </fieldset>
                </form>

                <hr>

            </div>
        </div>

    </div>



</div> <!-- /container -->

<script data-main="assets/js/main-built.js" src="../assets/js/lib/require.js" ></script>


</body>
</html>
